package com.iSnail.ms.gather.ui.chart;

import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;

import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTabbedPane;

import com.iSnail.ms.util.I18N;

public class ThermalCrackPanel extends JTabbedPane{
	public ThermalCrackPanel(){
		JPanel temperature = new JPanel();
		temperature.setLayout(new GridBagLayout());
		temperature.add(new TemperatureLine().getContentPanel(),
				new GridBagConstraints(0, 0, 1, 1, 1, 1, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));
		addTab(I18N.getString("temperature"), temperature);
		
		JPanel displacement = new JPanel();
		displacement.setLayout(new GridBagLayout());
		displacement.add(new InternalStressLine().getContentPanel(),
				new GridBagConstraints(0, 0, 1, 1, 1, 1, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));
		addTab(I18N.getString("stress"), displacement);
	}
}
